package com.itheima.service.mongo;

import com.itheima.domain.mongo.Movement;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

// 动态
public interface MovementService {

    // 发布动态
    void saveMovement(Movement movement);

    // 查询我的动态
    PageBeanVo findMyMovement(Long userId, Integer pageNum, Integer pageSize);

    // 查询好友动态
    PageBeanVo findFriendMovement(Long userId, Integer pageNum, Integer pageSize);

    // 查询推荐动态
    PageBeanVo findRecommendMovement(Long userId, Integer pageNum, Integer pageSize);

    // 根据主键查询动态详情
    Movement findById(ObjectId publishId);

    // 查询动态分页
    PageBeanVo findMovementByPage(Long userId, Integer state, Integer pageNum, Integer pageSize);

    // 更新审核结果
    void updateMovementById(Movement movement);
}
